<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h3>页面丢了</h3>
  <hr>
  <div>
    <a href="/admin/users">用户列表</a>
  </div>
  <div>
    <h3 id="time">5</h3>
  </div>
  <script>
    let time = +document.getElementById('time').innerHTML;
    setInterval(() => {
      time--
      document.getElementById('time').innerHTML = time;
      if (time == 0) {
        location.href = '/admin/users'
      }
    }, 1000);
  </script>
</body>

</html>